﻿<UserControl x:Class="TotalSystems.Core.Controls.LabeledText"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
          Name="uc" Height="25" Width="250">
        <Grid x:Name="LayoutRoot" Background="White"  Width="{Binding Width,ElementName=uc}" Height="{Binding Height,ElementName=uc}"  >
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="10"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="1*"/>
        </Grid.ColumnDefinitions>
        <sdk:Label Grid.Column="0" Visibility="Collapsed" Name="lblMandatory" Content="*" Foreground="Red" VerticalAlignment="Center" HorizontalAlignment="Center"/>
            <sdk:Label Grid.Column="1" Height="{Binding Height,ElementName=uc}" Name="lblLable" Content="{Binding LabelText,ElementName=uc}" VerticalAlignment="Center" Width="{Binding LableWidth,ElementName=uc}" Padding="5,0,0,0" />
        <TextBox Grid.Column="2"  Height="{Binding Height,ElementName=uc}" Name="textBox1" VerticalAlignment="Center" Width="Auto" LostFocus="textBox1_LostFocus"/>
    </Grid>
</UserControl>
